package com.zbowen.seata.consumer;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableDiscoveryClient  // 启用服务注册发现
@EnableFeignClients     // 启用Feign客户端
@MapperScan(basePackages = {"com.zbowen.seata.consumer.repository"})
public class SeataConsumerApplication {

    public static void main(String[] args) {
        // 解决Nacos日志报错问题
        System.setProperty("nacos.logging.default.config.enabled","false");
        SpringApplication.run(SeataConsumerApplication.class, args);
    }
}
